import service from "@/utils/request"

import LoginWork from "@/utils/LoginWork"

// 生产作业
export const CyckeGeneration = (parms:any) => {
    return service.post<any,any>(`/batch/plan/loadCuttingUndealList`,parms)
}

// 已安排指令资料
export const CommandDataHasBeenArranged = (parms:any) => {
    return service.post<any,any>(`/batch/plan/loadCuttingDealList`,parms)
}

// 指令号码明细查询
export const QueryCommandNumberDetails = (parms:any) => {
    return service.post<any,any>(`/style/getStyleSizeData`,parms)
}

// 指令号码明细查询
export const QueryCommandNumberDetails1 = (parms:any) => {
    return service.post<any,any>(`/style/getStyleSizeData`,parms)
}

// 批次号码明细
export const LotNumberDetail = (lotNo:any) => {
    return service.post<any,any>(`/batch/plan/BatchNumberDetails?lotNo=${lotNo}`)
}

// 生成冲裁批次
export const GenerateABlankingBatch = (parms:any) => {
    return LoginWork.post<any,any>(`/batch/plan/GeneratePunchingBatch`,parms)
}

// 重新生成冲裁批次
export const GenerateABlankingBatch1 = (parms:any) => {
    return LoginWork.post<any,any>(`/batch/plan/GeneratePunchingBatch`,parms)
}